import itchat,time

itchat.auto_login(hotReload=True)


person = itchat.search_friends() #自己的信息
# print(person)

friend=itchat.search_friends(name='张磊')
# print(friend)

friends=itchat.get_friends();

# print(friends);

#print(itchat.get_chatrooms()[0]['MemberList'][0])
# print(len(itchat.get_chatrooms()[0]['MemberList'][0]))

#print(itchat.get_chatrooms()[0]['NickName']);
#print(itchat.get_chatrooms());
print(itchat.get_chatrooms()[1]['NickName'])

def group_reply_text(msg):
    if msg['Type'] == 'TEXT':
        print(msg)
